package com.lyf.boot;

import lombok.extern.slf4j.Slf4j;
import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;

/**
 * 启动类
 * @author Luyufan
 * @date 2023/7/3 10:37
 */
@Slf4j
@EnableFileStorage
@SpringBootApplication
public class WebApiApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(WebApiApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        try {
            application.run(args);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        log.info("(♥◠‿◠)ﾉﾞ  启动成功   ლ(´ڡ`ლ)ﾞ");
    }
}